<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>wickr-crypto-c: src/wickrcrypto/include/wickrcrypto/openssl_suite.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">wickr-crypto-c
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_92a70b6cc7e213c660915fdf1190028f.html">wickrcrypto</a></li><li class="navelem"><a class="el" href="dir_db4377ef08cfba82f5e7141624102360.html">include</a></li><li class="navelem"><a class="el" href="dir_2adb4122f2f58e588d09641dee9865e2.html">wickrcrypto</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">openssl_suite.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright © 2012-2018 Wickr Inc.  All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * This code is being released for EDUCATIONAL, ACADEMIC, AND CODE REVIEW PURPOSES</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * ONLY.  COMMERCIAL USE OF THE CODE IS EXPRESSLY PROHIBITED.  For additional details,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * please see LICENSE</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * THE CODE IS MADE AVAILABLE &quot;AS-IS&quot; AND WITHOUT ANY EXPRESS OR</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * IMPLIED GUARANTEES AS TO FITNESS, MERCHANTABILITY, NON-</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> * INFRINGEMENT OR OTHERWISE. IT IS NOT BEING PROVIDED IN TRADE BUT ON</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * A VOLUNTARY BASIS ON BEHALF OF THE AUTHOR’S PART FOR THE BENEFIT</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * OF THE LICENSEE AND IS NOT MADE AVAILABLE FOR CONSUMER USE OR ANY</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * OTHER USE OUTSIDE THE TERMS OF THIS LICENSE. ANYONE ACCESSING THE</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * CODE SHOULD HAVE THE REQUISITE EXPERTISE TO SECURE THEIR SYSTEM</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * AND DEVICES AND TO ACCESS AND USE THE CODE FOR REVIEW PURPOSES</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * ONLY. LICENSEE BEARS THE RISK OF ACCESSING AND USING THE CODE. IN</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * PARTICULAR, AUTHOR BEARS NO LIABILITY FOR ANY INTERFERENCE WITH OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * ADVERSE EFFECT THAT MAY OCCUR AS A RESULT OF THE LICENSEE</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * ACCESSING AND/OR USING THE CODE ON LICENSEE’S SYSTEM.</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#ifndef openssl_suite_h</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#define openssl_suite_h</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#include &lt;stdlib.h&gt;</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;buffer.h&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;cipher.h&quot;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="preprocessor">#include &quot;crypto_engine.h&quot;</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#include &quot;ecdsa.h&quot;</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#include &quot;eckey.h&quot;</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#gadfe740d19f9f2096b818553e90dae0d7">openssl_crypto_random</a>(<span class="keywordtype">size_t</span> len);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *<a class="code" href="group__openssl__crypto.html#ga9177055e488f0163d3eb946799df5a67">openssl_cipher_key_random</a>(<a class="code" href="structwickr__cipher.html">wickr_cipher_t</a> cipher);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *<a class="code" href="group__openssl__crypto.html#gaf51493d43d3572265abba27e2b3fbc54">openssl_aes256_encrypt</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *plaintext,</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *aad,</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key,</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;                                              <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *iv);</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#ga75eaf118b28fb76e75579d0a74517b18">openssl_aes256_decrypt</a>(<span class="keyword">const</span> <a class="code" href="structwickr__cipher__result.html">wickr_cipher_result_t</a> *cipher_result,</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;                                       <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *aad,</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;                                       <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key,</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;                                       <span class="keywordtype">bool</span> only_auth_ciphers);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#ga19991a9b00d0c383c64935fa2acecda7">openssl_sha2</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer,</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;                             <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *salt,</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;                             <a class="code" href="structwickr__digest.html">wickr_digest_t</a> mode);</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *<a class="code" href="group__openssl__crypto.html#ga75a01a740d558bfcc0f10920266cd9d5">openssl_ec_rand_key</a>(<a class="code" href="structwickr__ec__curve.html">wickr_ec_curve_t</a> curve);</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *<a class="code" href="group__openssl__crypto.html#gab2cc137ada900eba89796857603cd8cd">openssl_ec_key_import</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *buffer, <span class="keywordtype">bool</span> is_private);</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *<a class="code" href="group__openssl__crypto.html#gab32cef5c789ee1992afae98a81b65823">openssl_ec_sign</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *ec_signing_key,</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                                      <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data_to_sign,</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;                                      <a class="code" href="structwickr__digest.html">wickr_digest_t</a> digest_mode);</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#ga1e2b3f17c67e97360b616d0d673767f7">openssl_ec_verify</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ecdsa__result.html">wickr_ecdsa_result_t</a> *signature,</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;                       <span class="keyword">const</span> <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *ec_public_key,</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;                       <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data_to_verify);</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#gac18a3e234621caaabf695715fb22d950">openssl_gen_shared_secret</a>(<span class="keyword">const</span> <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *local, <span class="keyword">const</span> <a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *peer);</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#gaeb4574976214a17eb79bbc3d76f573a6">openssl_hmac_create</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data,</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;                                    <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *hmac_key,</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;                                    <a class="code" href="structwickr__digest.html">wickr_digest_t</a> mode);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;</div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#gafbde176ef6f2b99ff9dab58ad69a9a74">openssl_hmac_verify</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *data,</div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                         <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *hmac_key,</div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                         <a class="code" href="structwickr__digest.html">wickr_digest_t</a> mode,</div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                         <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *expected);</div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#ga788a03002d8c6048401cf0bbc2d48c7a">openssl_hkdf</a>(<span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *input_key_material,</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;                             <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *salt,</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;                             <span class="keyword">const</span> <a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *info,</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;                             <a class="code" href="structwickr__digest.html">wickr_digest_t</a> hash_mode);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;<a class="code" href="structwickr__buffer.html">wickr_buffer_t</a> *<a class="code" href="group__openssl__crypto.html#ga12da75115315fbf7394f4791a2eb815c">openssl_sha2_file</a>(FILE *in_file, <a class="code" href="structwickr__digest.html">wickr_digest_t</a> mode);</div><div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#ga178fa1f33ad2767c27411c3ebcdd3ca0">openssl_encrypt_file</a>(FILE *in_file, <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key, FILE *out_file);</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#gaf1faa509e06c188acfbdf43e2197c61a">openssl_decrypt_file</a>(FILE *in_file,</div><div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;                          <span class="keyword">const</span> <a class="code" href="structwickr__cipher__key.html">wickr_cipher_key_t</a> *key,</div><div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;                          FILE *out_file,</div><div class="line"><a name="l00262"></a><span class="lineno">  262</span>&#160;                          <span class="keywordtype">bool</span> only_auth_ciphers);</div><div class="line"><a name="l00263"></a><span class="lineno">  263</span>&#160;</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#ga04773a29991559a4004c23cc4e8badd7">openssl_enable_fips_mode</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;</div><div class="line"><a name="l00280"></a><span class="lineno">  280</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="group__openssl__crypto.html#gaed92eb2b892df254af6099cd472b027a">openssl_is_fips_supported</a>();</div><div class="line"><a name="l00281"></a><span class="lineno">  281</span>&#160;</div><div class="line"><a name="l00282"></a><span class="lineno">  282</span>&#160;<span class="comment">/* Functions to assist with testing */</span></div><div class="line"><a name="l00283"></a><span class="lineno">  283</span>&#160;<a class="code" href="structwickr__ec__key.html">wickr_ec_key_t</a> *openssl_ec_key_import_test_key(<a class="code" href="structwickr__ec__curve.html">wickr_ec_curve_t</a> curve, <span class="keyword">const</span> <span class="keywordtype">char</span> *priv_hex);</div><div class="line"><a name="l00284"></a><span class="lineno">  284</span>&#160;</div><div class="line"><a name="l00285"></a><span class="lineno">  285</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;}</div><div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00288"></a><span class="lineno">  288</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno">  289</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* openssl_suite_h */</span><span class="preprocessor"></span></div><div class="ttc" id="group__openssl__crypto_html_ga04773a29991559a4004c23cc4e8badd7"><div class="ttname"><a href="group__openssl__crypto.html#ga04773a29991559a4004c23cc4e8badd7">openssl_enable_fips_mode</a></div><div class="ttdeci">bool openssl_enable_fips_mode(void)</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga178fa1f33ad2767c27411c3ebcdd3ca0"><div class="ttname"><a href="group__openssl__crypto.html#ga178fa1f33ad2767c27411c3ebcdd3ca0">openssl_encrypt_file</a></div><div class="ttdeci">bool openssl_encrypt_file(FILE *in_file, const wickr_cipher_key_t *key, FILE *out_file)</div></div>
<div class="ttc" id="structwickr__ec__key_html"><div class="ttname"><a href="structwickr__ec__key.html">wickr_ec_key</a></div><div class="ttdoc">Representation of public and private Elliptic Curve Keypair information as buffers.</div><div class="ttdef"><b>Definition:</b> eckey.h:90</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga19991a9b00d0c383c64935fa2acecda7"><div class="ttname"><a href="group__openssl__crypto.html#ga19991a9b00d0c383c64935fa2acecda7">openssl_sha2</a></div><div class="ttdeci">wickr_buffer_t * openssl_sha2(const wickr_buffer_t *buffer, const wickr_buffer_t *salt, wickr_digest_t mode)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gac18a3e234621caaabf695715fb22d950"><div class="ttname"><a href="group__openssl__crypto.html#gac18a3e234621caaabf695715fb22d950">openssl_gen_shared_secret</a></div><div class="ttdeci">wickr_buffer_t * openssl_gen_shared_secret(const wickr_ec_key_t *local, const wickr_ec_key_t *peer)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gaf1faa509e06c188acfbdf43e2197c61a"><div class="ttname"><a href="group__openssl__crypto.html#gaf1faa509e06c188acfbdf43e2197c61a">openssl_decrypt_file</a></div><div class="ttdeci">bool openssl_decrypt_file(FILE *in_file, const wickr_cipher_key_t *key, FILE *out_file, bool only_auth_ciphers)</div></div>
<div class="ttc" id="structwickr__buffer_html"><div class="ttname"><a href="structwickr__buffer.html">wickr_buffer</a></div><div class="ttdoc">Represents an array of bytes and the length of the allocation associated with those bytes.</div><div class="ttdef"><b>Definition:</b> buffer.h:51</div></div>
<div class="ttc" id="group__openssl__crypto_html_gaed92eb2b892df254af6099cd472b027a"><div class="ttname"><a href="group__openssl__crypto.html#gaed92eb2b892df254af6099cd472b027a">openssl_is_fips_supported</a></div><div class="ttdeci">bool openssl_is_fips_supported()</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga1e2b3f17c67e97360b616d0d673767f7"><div class="ttname"><a href="group__openssl__crypto.html#ga1e2b3f17c67e97360b616d0d673767f7">openssl_ec_verify</a></div><div class="ttdeci">bool openssl_ec_verify(const wickr_ecdsa_result_t *signature, const wickr_ec_key_t *ec_public_key, const wickr_buffer_t *data_to_verify)</div></div>
<div class="ttc" id="structwickr__cipher_html"><div class="ttname"><a href="structwickr__cipher.html">wickr_cipher</a></div><div class="ttdoc">Represents a cipher that can be used in the crypto_engine. This meta object holds parameters for the ...</div><div class="ttdef"><b>Definition:</b> cipher.h:56</div></div>
<div class="ttc" id="group__openssl__crypto_html_gaf51493d43d3572265abba27e2b3fbc54"><div class="ttname"><a href="group__openssl__crypto.html#gaf51493d43d3572265abba27e2b3fbc54">openssl_aes256_encrypt</a></div><div class="ttdeci">wickr_cipher_result_t * openssl_aes256_encrypt(const wickr_buffer_t *plaintext, const wickr_buffer_t *aad, const wickr_cipher_key_t *key, const wickr_buffer_t *iv)</div></div>
<div class="ttc" id="structwickr__ecdsa__result_html"><div class="ttname"><a href="structwickr__ecdsa__result.html">wickr_ecdsa_result</a></div><div class="ttdoc">Elliptic Curve Digital Signature Algorithm Result.</div><div class="ttdef"><b>Definition:</b> ecdsa.h:54</div></div>
<div class="ttc" id="group__openssl__crypto_html_gadfe740d19f9f2096b818553e90dae0d7"><div class="ttname"><a href="group__openssl__crypto.html#gadfe740d19f9f2096b818553e90dae0d7">openssl_crypto_random</a></div><div class="ttdeci">wickr_buffer_t * openssl_crypto_random(size_t len)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gafbde176ef6f2b99ff9dab58ad69a9a74"><div class="ttname"><a href="group__openssl__crypto.html#gafbde176ef6f2b99ff9dab58ad69a9a74">openssl_hmac_verify</a></div><div class="ttdeci">bool openssl_hmac_verify(const wickr_buffer_t *data, const wickr_buffer_t *hmac_key, wickr_digest_t mode, const wickr_buffer_t *expected)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gab2cc137ada900eba89796857603cd8cd"><div class="ttname"><a href="group__openssl__crypto.html#gab2cc137ada900eba89796857603cd8cd">openssl_ec_key_import</a></div><div class="ttdeci">wickr_ec_key_t * openssl_ec_key_import(const wickr_buffer_t *buffer, bool is_private)</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga788a03002d8c6048401cf0bbc2d48c7a"><div class="ttname"><a href="group__openssl__crypto.html#ga788a03002d8c6048401cf0bbc2d48c7a">openssl_hkdf</a></div><div class="ttdeci">wickr_buffer_t * openssl_hkdf(const wickr_buffer_t *input_key_material, const wickr_buffer_t *salt, const wickr_buffer_t *info, wickr_digest_t hash_mode)</div></div>
<div class="ttc" id="structwickr__cipher__result_html"><div class="ttname"><a href="structwickr__cipher__result.html">wickr_cipher_result</a></div><div class="ttdef"><b>Definition:</b> cipher.h:97</div></div>
<div class="ttc" id="structwickr__cipher__key_html"><div class="ttname"><a href="structwickr__cipher__key.html">wickr_cipher_key</a></div><div class="ttdef"><b>Definition:</b> cipher.h:189</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga75a01a740d558bfcc0f10920266cd9d5"><div class="ttname"><a href="group__openssl__crypto.html#ga75a01a740d558bfcc0f10920266cd9d5">openssl_ec_rand_key</a></div><div class="ttdeci">wickr_ec_key_t * openssl_ec_rand_key(wickr_ec_curve_t curve)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gaeb4574976214a17eb79bbc3d76f573a6"><div class="ttname"><a href="group__openssl__crypto.html#gaeb4574976214a17eb79bbc3d76f573a6">openssl_hmac_create</a></div><div class="ttdeci">wickr_buffer_t * openssl_hmac_create(const wickr_buffer_t *data, const wickr_buffer_t *hmac_key, wickr_digest_t mode)</div></div>
<div class="ttc" id="group__openssl__crypto_html_gab32cef5c789ee1992afae98a81b65823"><div class="ttname"><a href="group__openssl__crypto.html#gab32cef5c789ee1992afae98a81b65823">openssl_ec_sign</a></div><div class="ttdeci">wickr_ecdsa_result_t * openssl_ec_sign(const wickr_ec_key_t *ec_signing_key, const wickr_buffer_t *data_to_sign, wickr_digest_t digest_mode)</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga75eaf118b28fb76e75579d0a74517b18"><div class="ttname"><a href="group__openssl__crypto.html#ga75eaf118b28fb76e75579d0a74517b18">openssl_aes256_decrypt</a></div><div class="ttdeci">wickr_buffer_t * openssl_aes256_decrypt(const wickr_cipher_result_t *cipher_result, const wickr_buffer_t *aad, const wickr_cipher_key_t *key, bool only_auth_ciphers)</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga9177055e488f0163d3eb946799df5a67"><div class="ttname"><a href="group__openssl__crypto.html#ga9177055e488f0163d3eb946799df5a67">openssl_cipher_key_random</a></div><div class="ttdeci">wickr_cipher_key_t * openssl_cipher_key_random(wickr_cipher_t cipher)</div></div>
<div class="ttc" id="group__openssl__crypto_html_ga12da75115315fbf7394f4791a2eb815c"><div class="ttname"><a href="group__openssl__crypto.html#ga12da75115315fbf7394f4791a2eb815c">openssl_sha2_file</a></div><div class="ttdeci">wickr_buffer_t * openssl_sha2_file(FILE *in_file, wickr_digest_t mode)</div></div>
<div class="ttc" id="structwickr__digest_html"><div class="ttname"><a href="structwickr__digest.html">wickr_digest</a></div><div class="ttdoc">Digest function parameters.</div><div class="ttdef"><b>Definition:</b> digest.h:54</div></div>
<div class="ttc" id="structwickr__ec__curve_html"><div class="ttname"><a href="structwickr__ec__curve.html">wickr_ec_curve</a></div><div class="ttdoc">Metadata about curve types to help with key generation, and signatures.</div><div class="ttdef"><b>Definition:</b> eckey.h:65</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
